#if !defined(AFX_BEDCTRL_H__C3CF8430_0C8B_4E79_99BE_4E7B96E8938F__INCLUDED_)
#define AFX_BEDCTRL_H__C3CF8430_0C8B_4E79_99BE_4E7B96E8938F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// BedCtrl.h : header file
//
#include "FmCtrl.h"


/////////////////////////////////////////////////////////////////////////////
// CBedCtrl window

class CBedCtrl : public CWnd
{
// Construction
public:
	CBedCtrl();
	
// Attributes
public:
//	CFmContext* m_pContext;
	//int m_nBedNo;
	CString m_strBedNo;
	CFmCtrl	m_Ctrl;
	
	CButton m_btNewPatient;
	CButton m_btBedNo;
	CButton m_btAlarm;
	//BOOL	m_bAlarmOn;
//	bool m_bMonitorFlag;


//	CBitmap  m_objBitmap;
	unsigned int m_nCurWarningState;

// Operations
public:
	BOOL	Create( DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CFmContext* pContext ); // create this window
//	void	SetAlarm(BOOL bOn);
	void	SetZoom(float fZoom);
	float	GetZoom();
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CBedCtrl)
	public:
	virtual BOOL DestroyWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CBedCtrl();

	// Generated message map functions
protected:
	//{{AFX_MSG(CBedCtrl)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnBnClickedButtonNewPatient();
	afx_msg LRESULT OnMsgFmCtrlDblClick(WPARAM wp, LPARAM lp);
//	afx_msg LRESULT OnMsgOffline(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnMsgFmCtrlAlarm(WPARAM wp, LPARAM lp);
	afx_msg LRESULT OnMsgBedCtrlUpdateMonitorState(WPARAM wp, LPARAM lp);
	//}}AFX_MSG
	afx_msg void OnBtAlarm();
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_BEDCTRL_H__C3CF8430_0C8B_4E79_99BE_4E7B96E8938F__INCLUDED_)
